//
//  zhangApi.h
//  HeFanTV
//
//  Created by Mr.Zhang on 2017/5/9.
//  Copyright © 2017年 SAGA. All rights reserved.
//

#ifndef zhangApi_h
#define zhangApi_h

#define UPDATEURL [NSString stringWithFormat:@"http://cbt.network/cbt/app/index.html?language=%@",[kLanguageManager isSimplified] ? @"zh" : [kLanguageManager isTraditional] ? @"tw" : [kLanguageManager isKO] ? @"ko" : @"en"]

//产品列表
#define Network_GetCommodity  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/getCommodity"]

// 已完成订单列表
#define Network_GetUserOrder  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/getUserOrder"]

//地址列表
#define Network_GetUserAddress  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/getUserAddress"]

// 新增地址
#define Network_AddAddress  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/addUserAddress"]

//更新地址
#define Network_UpdateAddress  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/updateUserAddress"]
// 购买
#define Network_AddUserOrder  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/addUserOrder"]
//商品列表
#define Network_GetQuotations  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/order/getCommodity"]

//首页
#define Network_GetNews  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getNews"]  /*首页公告*/
#define Network_GetIncome  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getIncomeByuserId"]  /*首页收益*/
#define Network_GetCoinInfo  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getCoinInfoByuserId"]  /*首页已上架币种列表*/

//社区
#define Network_GetCoinVoteList  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getCoinVoteList"]  /*社区投票币种列表*/
#define Network_DoBallot  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/doBallot"]  /*社区币种投票*/

//用户
#define Network_GetUserAsset  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getAssetMsgByuserId"]  /*用户资产*/
#define Network_GetVotes  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getVotesByuserId"]  /*获取用户票权数量*/
#define Network_ExchangeVotes  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/exchangeVotes"]  /*用户获得票权*/
#define Network_CreateCoin  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/createCoin"]  /*用户创建币种*/
#define Network_DoInvest  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/doInvest"]  /*用户投资*/

#define Network_GetInvestRecord  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvestRecord"]  /*用户投资记录*/

#define Network_GetTodayInvestRecord  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getTodayIncomeByuserId"]/*昨日收益*/

#define Network_GetRechargeRecord  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getRechargeRecord"]  /*用户充值记录*/
#define Network_GetDrawRecord  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getDrawRecord"]  /*用户提现记录*/
#define Network_DrawMoney  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/drawMoney"]  /*用户提现*/
#define Network_GetInvestList  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvestListByuserId"]  /*我的存单*/
#define Network_DoRecharge  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/doRecharge"]  /*获取用户充值地址*/
#define Network_CheckIDcard  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/checkIDcard"]  /*检查身份证状态*/
#define Network_GetInvestRatio [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvestRatio"]  /*投资利率*/
#define Network_DrawRate [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/drawRate"]  /*提现手续费率*/
#define Network_SignInByuserId [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/signInByuserId"]  /*用户签到*/
#define Network_GetSignInFlag [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getSignInFlagByuserId"]  /*获取用户签到状态*/
#define Network_GetRewardRate [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getRewardRate"]  /*推荐投资奖励率*/
#define Network_GetRewardRecord [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getRewardRecord"]  /*推荐奖励记录*/
#define Network_GetUserFeedBack [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/feedBack"]  /*意见反馈*/
#define Network_GetInvitedIncome [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvitedIncome"]  /*邀请收益*/
#define Network_GetInvestDetails [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvestDetails"]  /*投资详情*/
#define Network_GetInvitedDetails [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvitedDetails"]  /*邀请详情*/
#define Network_GetMinerRate [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getMinerRate"]  /*获取矿工费率*/
#define Network_CheckPayPassWord [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/checkPayPassWord"]  /*校验支付密码*/

#define Network_UserDrawPCMoney [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/drawPCMoney"]  /*兑换*/

#define Network_UserDoPCChange [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/doPCTransfer"]  /*用户PC转账*/

#define Network_UserDoChange [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/doChange"]  /*用户转账*/

#define Network_GetChangeRecord [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getChangeRecord"]  /*获取转账记录*/

//注册
#define Network_AddUserByPhone  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/addUserByPhone"]  /*手机号注册*/
#define Network_AddUserByEmail  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/addUserByEmail"]  /*邮箱注册*/

//登录
#define Network_Phone_Login  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/loginByPhone"]  /*手机号登录*/

#define Network_Email_Login  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/loginByEmail"]  /*邮箱登录*/

#define Network_SendPhoneMsg  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/sendPhoneMsg"]  /*邮箱登录*/

#define Network_SendEmailMsg  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/sendEmailMsg"]  /*发送邮箱验证码*/

//密码修改、忘记密码
#define Network_Set_Password  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/setPassword"]  /*登录密码修改*/
#define Network_Set_PayPassword  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/setPayPassword"]  /*修改支付密码*/


//基本资料修改
#define Network_Set_NickName  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/setNickName"]  /*修改昵称*/

//我的存单
#define Network_DrawCapitalOrIncome  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/drawCapitalOrIncome"]  /*提取本金或收益*/
#define Network_GetInvestState  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/getInvestState"]            /*提取本金获取存单状态*/
#define Network_ContinueInvest  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/continueInvest"]            /*存单到期，用户续投*/


//检查更新
#define Network_CheckIOSUpdate  [NSString stringWithFormat:@"%@%@",kBaseURL_STATIC,@"/cbt/checkIOSUpdate"]  /*检查更新*/

#endif /* zhangApi_h */
